package com.chart.web.controller.chart;

import com.chart.common.core.domain.AjaxResult;
import com.chart.common.core.domain.entity.ChartRelateSort;
import com.chart.system.service.IChartRelateSortService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/chartRelateSort")
public class ChartRelateSortController {


    @Autowired
    private IChartRelateSortService chartRelateSortService;

    // 查询所有分类
    @GetMapping("/list")
    public AjaxResult listAllChartRelateSorts() {
        List<ChartRelateSort> chartRelateSorts = chartRelateSortService.list();
        return AjaxResult.success(chartRelateSorts);
    }

}
